package com.wondertek.poms.dao.po;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author chenjijiang
 * @description
 */
@Data
@Entity
@Table(name = "BC_LOG")
@DynamicUpdate
@DynamicInsert
@Proxy(lazy = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class BcLog implements Serializable {
	private static final long serialVersionUID = -3755172440766997865L;

	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "BC_LOG_SEQ")
	@SequenceGenerator(name = "BC_LOG_SEQ", allocationSize = 1, sequenceName = "BC_LOG_SEQ")
	private Long bcLogId;

	/**
	 * 媒资ID
	 */
	@Column(name = "MMS_ID")
	private Long mmsId;

	@Column(name = "PRD_CONT_ID")
	private Long prdContId;

	@Column(name = "CONTENT_ID")
	private Long contentId;

	@Column(name = "BC_STATUS")
	private Integer bcStatus;

	@Column(name = "BC_PERSON")
	private String bcPerson;

	@Column(name = "BC_TIME")
	private Date bcTime;

	@Column(name = "BC_REFUSE_REASON")
	private String bcRefuseReason;

	@Column(name = "BC_ID")
	private Long bcId;
}
